home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
pctj0287.arc
/
MLOOPMAC.ASM
< prev
next >
Wrap
Assembly Source File
|
1986-12-16
|
437b
|
28 lines
; Input:
; P1 = label to jump to.
MLOOP macro P1
local skip_label, skip_label1, skip_label2
ifdef P1
if (P1 LE $)
if (($ - P1 + 2) LE 128)
loop P1 ;backward short jump
else
dec cx
jz skip_label
jmp P1
skip_label:
endif
else
dec cx ;forward jump (pass 2)
jz skip_label1
jmp P1
skip_label1:
endif
else
dec cx ;forward jump (pass 1)
jz skip_label2
jmp P1
skip_label2:
endif
endm